using System;
using System.Data;
using System.Text;

namespace Webgame.Entity
{
    public class Map
    {

        #region property
        int _ID = 0;

        public int ID
        {
            get
            {
                return _ID;
            }
            set
            {
                _ID = value;
            }
        }
        string _Name = string.Empty;

        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                _Name = value;
            }
        }
        int _Width = 0;

        public int Width
        {
            get
            {
                return _Width;
            }
            set
            {
                _Width = value;
            }
        }
        int _Height = 0;

        public int Height
        {
            get
            {
                return _Height;
            }
            set
            {
                _Height = value;
            }
        }
        int _SpanTime = 0;

        public int SpanTime
        {
            get
            {
                return _SpanTime;
            }
            set
            {
                _SpanTime = value;
            }
        }
        DateTime _NextUpdateTime = DateTime.Now;

        public DateTime NextUpdateTime
        {
            get
            {
                return _NextUpdateTime;
            }
            set
            {
                _NextUpdateTime = value;
            }
        }
        #endregion
        public override string ToString()
        {
            StringBuilder builder = new StringBuilder();
            builder.AppendFormat("ID={0}", ID);
            builder.AppendLine();
            builder.AppendFormat("Name={0}", Name);
            builder.AppendLine();
            builder.AppendFormat("Width={0}", Width);
            builder.AppendLine();
            builder.AppendFormat("Height={0}", Height);
            builder.AppendLine();
            builder.AppendFormat("SpanTime={0}", SpanTime);
            builder.AppendLine();
            builder.AppendFormat("NextUpdateTime={0}", NextUpdateTime);
            builder.AppendLine();

            return builder.ToString();
        }
    }
}
